package com.team11.server.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "获取作业任务列表",description = "获取作业任务列表")
public class WorkTask {

    @ApiModelProperty(value = "作业主题")
    @TableField("h_title")
    private String hTitle;

    @ApiModelProperty(value = "作业内容")
    @TableField("s_content")
    private String sContent;

    @ApiModelProperty(value = "附件名称")
    @TableField("c_f_name")
    private String cFName;

    @ApiModelProperty(value = "附件地址")
    @TableField("c_file")
    private String cFile;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hSetime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hStoptime;

    @ApiModelProperty(value = "教师姓名")
    @TableField("t_name")
    private String tName;
}
